import { requestClient } from '#/api/request';

/**
 * 获取用户所有菜单
 */
export async function getAllProduct(params: any) {
  return requestClient.post('/app/product/get-page', params, {});
}
export async function addProduct(params: any) {
  return requestClient.post('/app/product/add', params, {});
}
export async function batchCheck(params: any) {
  return requestClient.post('/app/product/check', params, {});
}
export async function deleteProduct(data: any) {
  return requestClient.delete('/app/product/soft-delete', {
    data,
  });
}
export async function batchDeleteProduct(data: any) {
  return requestClient.delete('/app/product/batch-soft-delete', {
    data,
  });
}

// 订单列表
export async function getOrderList(data: any) {
  return requestClient.post('/app/order/get-page', data, {
    data,
  });
}
export async function getOrderDetail(data: any) {
  return requestClient.post('/app/order/get', data, {
    data,
  });
}
